/*
 * @Author       : 许警
 * @Date         : 2024-05-16 09:52:10
 * @LastEditors: 许警 11378748333@
 * @LastEditTime: 2024-07-11 10:35:52
 * @FilePath     : /src/api/content/translate.js
 * @Description  :
 */
import http from '../request.js'

// 新增或编辑机构
export function insertOrUpdatePlaceOrgan(data) {
  return http.request({
    url: '/admin/placeOrgan/insertOrUpdatePlaceOrgan',
    method: 'post',
    data
  })
}
// 查询机构列表
export function selectPlaceOrganList(data) {
  return http.request({
    url: '/admin/placeOrgan/selectPlaceOrganList',
    method: 'post',
    data
  })
}

//根据机构id生成对应二维码
export function getQRCodeByOrganId(params) {
  return http.request({
    url: '/admin/placeOrgan/getQRCodeByOrganId',
    method: 'get',
    params
  })
}

// 删除机构（软删除）
export function deleteOrganById(params) {
  return http.request({
    url: '/admin/placeOrgan/deleteOrganById',
    method: 'get',
    params
  })
}

// 根据机构编号查询绑定服务列表
export function selectOrganServiceListByOrganId(params) {
  return http.request({
    url: '/admin/placeOrgan/selectOrganServiceListByOrganId',
    method: 'get',
    params
  })
}

// 根据机构编号查询机构绑定字段以及可绑定字段
export function selectOrganFieldByOrganId(data) {
  return http.request({
    url: '/admin/placeOrgan/selectOrganFieldByOrganId',
    method: 'post',
    data
  })
}

// 字段配置
export function placeOrganFieldBind(data) {
  return http.request({
    url: '/admin/placeOrgan/fieldBind',
    method: 'post',
    data
  })
}

// 导出机构扫码订单列表
export function uploadOrganOrderList(data) {
  return http.request({
    url: '/admin/placeOrgan/uploadOrganOrderList',
    method: 'post',
    data
  })
}

// 多条件查询机构扫码订单列表
export function selectOrganOrderByDto(data) {
  return http.request({
    url: '/admin/placeOrgan/selectOrganOrderByDto',
    method: 'post',
    data
  })
}

// 获取的全部id
export function selectOrganIdList(data) {
  return http.request({
    url: '/admin/placeOrgan/selectOrganIdList',
    method: 'post',
    data
  })
}

// 小程序跳转链接
export function getAppletUrl(params) {
  return http.request({
    url: '/admin/placeOrgan/getAppletUrl',
    method: 'get',
    params
  })
}
